<?php


namespace app\admin\model;


use think\Model;
use think\model\concern\SoftDelete;

class ProjectBudget extends Model
{
    use SoftDelete;
    protected $name = 'project_budgets';


    public function ProjectBudgetPlanConfig()
    {
        return $this->hasMany(ProjectBudgetPlanConfig::class, 'project_budget_id');
    }

    public function ProjectBudgetTypeConfig()
    {
        return $this->hasMany(ProjectBudgetTypeConfig::class, 'project_budget_id');
    }


    public function admin()
    {
        return $this->belongsTo(Admin::class, 'examine_admin_id');
    }
}
